package com.mi.fums;

import cn.hutool.cron.CronUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.oas.annotations.EnableOpenApi;

@ComponentScan(value = {"com.finsung.adgw.*", "com.mi.fums.*", "com.pig4cloud.plugin.*"},
        excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX, pattern = {"com.finsung.adgw.common.core.config.RedisTemplateConfiguration"})})
@SpringBootApplication
@EnableOpenApi
@EnableScheduling
public class FumsApplication {

    public static void main(String[] args) {
        CronUtil.setMatchSecond(true);
        CronUtil.start(true);
        SpringApplication.run(FumsApplication.class, args);
    }
}
